<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'ShowAll.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="JS/jquery-1.8.3.js"></script>
	<script type="text/javascript" src="JS/showAll.js"></script>
  </head>
  
  <body>
    <div id="tab">
	    <table border="1" cellpadding="0" cellspacing="0">
	    	<tr>
	    		<td>序号</td>
	    		<td>标题</td>
	    		<td>回复/查看</td>
	    		<td>发表时间</td>
	    		<td>最新回复</td>
	    	</tr>
	    	<c:forEach var="i" items="${iList }">
	    		<tr>
		    		<td>${i.id}</td>
		    		<td>
						<a href="SearchServlet?id=${i.id}&content=${i.content}&lastposttime=${i.lastposttime}&replycount=${i.replycount}&reporttime=${i.reporttime}&title=${i.title}&viewcount=${i.viewcount}">${i.title}</a>
					</td>
		    		<td>${i.replycount}/${i.viewcount}</td>
		    		<td>${i.reporttime}</td>
		    		<td>${i.lastposttime}</td>
	    		</tr>
	    	</c:forEach>
	    </table>
   
    </div>
     <p id="fy">
   		<c:forEach begin="1" end="${p.sumPage }" step="1" varStatus="status">
    		<a class="fenye">${status.index }</a>
    	</c:forEach>
   	</p>
  </body>
</html>
